package spider.Configguration;

import java.io.Serializable;

/**
 * created by yb
 * on 2017/8/11.
 **/
public class Configuration implements Serializable {
    private static final int DEFOULT_SIZE = 100; //默认每个线程可以下载最大为100
    private static final int TDEFOULT_IMES = 3;
    private static final long serialVersionUID = 875338996882882280L;
    private String path; //下载后的文件基地址
    private int size; //每个线程能下载的最大数量
    private int tryTimes;


    //region set and get constructor
    public int getTryTimes() {
        return tryTimes;
    }

    public void setTryTimes(int tryTimes) {
        this.tryTimes = tryTimes;
    }

    public Configuration() {
        size = DEFOULT_SIZE;
        tryTimes = TDEFOULT_IMES;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
    //endregion Constructor
}
